package com.czl.elm.rabbitmq;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class MQsend {
    @Autowired
    private RabbitTemplate rabbitTemplate;
    public void sendSeckillMsg(Map<String,String> msg){
        rabbitTemplate.convertAndSend("sec_exchange","seckillRT",msg);
    }
}
